package com.zl.service.impl;

import com.zl.dao.NewsDao;
import com.zl.pojo.News;
import com.zl.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewsServiceImpl implements NewsService {
    @Autowired
    private NewsDao nd;
    @Override
    public List<News> queryNews() {
        return nd.queryNews();
    }
}
